package homework23;

public class PhoneDecorator extends Phone{//充当抽象装饰类
    private Phone phone = null;//维持对抽象构建类型对象的引用

    //注入抽象构件类型的对象...
    public PhoneDecorator(Phone phone) {
       this.phone = phone;
    }

    @Override
    public void receiveCall() {
        phone.receiveCall();
    }
}
